<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta charset="utf-8">
<meta name="decorator" content="default" />
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<link rel="stylesheet" href="${ctxStatic}/css/list.css">
    <script>
        
	function save() {
		var id = $('#orderId').val();
		$.post("${ctx}/order/createOrder3/save?id=" + id, null, function(result) {
			 layer.msg('<spring:message code="order_save_success"/>', {time:1000});
			 window.parent.frames[0].location.href = "${ctx}/order/order/";
		}, 'json');
	}
        
    </script>
</head>
<body>
<div class="myshop">
    <!-- 创建订单 -->
    <p class="myshoptop"><spring:message code="order_create_order"/></p>
</div>

	<div class="myshop_middle_order">
		<!-- 标题 -->
        <div class="orderTit orderTitShow clearfix">
            <div class="titSm off" >
            <!-- 基本信息 -->
                <p><spring:message code="order_basic_info"/></p>
                <img src="${ctxStatic}/images/order_01_off.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder2/initUpdateOrder2?id=${order.id}"'>
                <!-- 量体信息 -->
                <p><spring:message code="order_fit_property_info"/></p>
                <img src="${ctxStatic}/images/order_02_off.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form3?id=${order.id}"'>
                <!-- 款式定制 -->
                <p><spring:message code="order_style_customization"/></p>
                <img src="${ctxStatic}/images/order_03_off.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form4?id=${order.id}"'>
                <!-- 辅料 -->
                <p><spring:message code="order_accessory"/></p>
                <img src="${ctxStatic}/images/order_04_off.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form5?id=${order.id}"'>
                <!-- 配料 -->
                <p><spring:message code="order_burdening"/></p>
                <img src="${ctxStatic}/images/order_05_off.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form6?id=${order.id}"'>
                <!-- 刺绣 -->
                <p><spring:message code="order_embroidery"/></p>
                <img src="${ctxStatic}/images/order_06_off.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form7?id=${order.id}"'>
                <!-- 标牌 -->
                <p><spring:message code="order_brand"/></p>
                <img src="${ctxStatic}/images/order_07_off.png">
            </div>
            <div class="titSm off" oonclick='window.location.href="${ctx}/order/createOrder3/form8?id=${order.id}"'>
                <!-- 售价 -->
                <p><spring:message code="order_sales_price"/></p>
                <img src="${ctxStatic}/images/order_08_off.png">
            </div>
        </div>
  
    <div class="top_first clearfix">
        <div class="contentBox cnBx">
            <!-- 售价 -->
            <p class="contentTit cnBy"><spring:message code="order_sales_price"/></p>
            <div class="contentbtm scrollBox">
                <!-- 面料费用 -->
                <p class="mtCost"><spring:message code="order_fabric_cost"/></p>
                <div class="mtName">
                    <!-- 面料名称 -->
                    <p class="mtNm fl"><span><spring:message code="order_fabric_name_show"/></span>${order.materialName}</p>
                    <!-- 面料费用 -->
                    <p class="mtCost fr"><span><spring:message code="order_fabric_cost_show"/></span><fmt:formatNumber value="${order.materialTotalPrice}" pattern="#,#00.00#"/> </p>
                </div>
                <!-- 单一项目费用 -->
                <p class="mtCost"><span><spring:message code="order_single_project_cost"/></p>
                <form id="inputForm">
                	<input type="hidden" id="orderId" value="${order.id}"/>
                	<div class="tableBox">
                    	<div class="tableBoxScroll tablePic slm">
                        	<table cellpadding="0">
                            	<thead>
                            	<tr>
                            	    <!-- No. -->
                                	<th><spring:message code="order_No"/></th>
                                	<!-- 中文全称 -->
                                	<th><spring:message code="order_name_cn"/></th>
                                	<!-- 项目费用 --> 
                                	<th><spring:message code="order_item_cost"/></th>
                            	</tr>
                            	</thead>
                            	<tbody>
                            	<c:forEach items="${order.showOrderOptionList}" var="item" varStatus="status">
                            		<tr>
                            			<!-- NO. -->
                                		<td>
                                    		<p>${status.index+1}</p>
                                		</td>
                                		<!-- 中文名称 -->
                                		<td>
                                    		<p>${item.itemNameCN}:</p>
                               			</td>
                                		<!-- 项目费用 -->
                               			<td>
                                    		<p><fmt:formatNumber value="${item.itemCost}" pattern="#,#00.00#"/> </p>
                                		</td>
                           	 		</tr>
                           		</c:forEach>
                            	</tbody>
                        </table>
                   		</div>
                	</div>
                </form>
                <!--<p class="mtCost">关联项目费用</p>
                <div class="tableBox">
                    <div class="tableBoxScroll tablePic slm">
                        <table cellpadding="0">
                            <thead>
                            <tr>
                                <th>No.</th>
                                <th>条件项目</th>
                                <th>条件</th>
                                <th>值</th>
                                <th>设置项目</th>
                                <th>项目费用</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>
                                    <p>1</p>
                                </td>
                                <td>
                                    <p>制作方式</p>
                                </td>
                                <td>
                                    <p>等于</p>
                                </td>
                                <td>
                                    <p>全手缝</p>
                                </td>
                                <td>
                                    <p>袖头DR1</p>
                                </td>
                                <td>
                                    <p>10</p>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p>2</p>
                                </td>
                                <td>
                                    <p>制作方式</p>
                                </td>
                                <td>
                                    <p>等于</p>
                                </td>
                                <td>
                                    <p>全手缝</p>
                                </td>
                                <td>
                                    <p>袖头DR1</p>
                                </td>
                                <td>
                                    <p>10</p>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p>3</p>
                                </td>
                                <td>
                                    <p>制作方式</p>
                                </td>
                                <td>
                                    <p>等于</p>
                                </td>
                                <td>
                                    <p>全手缝</p>
                                </td>
                                <td>
                                    <p>袖头DR1</p>
                                </td>
                                <td>
                                    <p>10</p>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p>4</p>
                                </td>
                                <td>
                                    <p>制作方式</p>
                                </td>
                                <td>
                                    <p>等于</p>
                                </td>
                                <td>
                                    <p>全手缝</p>
                                </td>
                                <td>
                                    <p>袖头DR1</p>
                                </td>
                                <td>
                                    <p>10</p>
                                </td>
                            </tr>
                          
                            </tbody>
                        </table>
                   </div>
                </div>
              -->
            </div>
        </div>
		<!-- 订单信息显示 -->
		<%@ include file="/WEB-INF/views/modules/order/orderCreateTitle.jsp"%>
        </div>
    <div class="Pre-box">
        <!-- 上一步 -->
        <div class="Pre-1" onclick='window.location.href="${ctx}/order/createOrder3/form7?id=0"'><spring:message code="order_back_step"/></div>
        <!-- 取消 -->
        <div class="Pre-2" onclick="window.parent.frames[0].location.href = '${ctx}/order/order/'"><spring:message code="order_cancel"/></div>
        <!-- 保存 -->
        <div class="Pre-1" onclick="save()"><spring:message code="order_save"/></div>
    </div>
</div>
<script>

	var windowH2 = window.parent.windowHIframe
	$('.TxtInfoSm1,.scrollBox').css('height',windowH2 - 365);

    var listH = $(':root').css('height')
    $(window.parent.$("#mainFrame").css('height',listH));
</script>
</body>
</html>